]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Fix corner positions for multi-monitors
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 21 Feb 2011 18:06:07 +0000 (19:06 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 21 Feb 2011 22:59:48 +0000 (23:59 +0100)
The corner positions were only based on the panel's dimensions, its
position needs to be taken into account as well.

js/ui/panel.js

index f45af435fbcfdbb8bf5603bc9e6f7c1394eccca4..1c23ae8d0a48682fb52cb1c9407ef5a318d71e95 100644 (file)
@@ -632,9 +632,11 @@ PanelCorner.prototype = {
         this.actor.set_size(cornerRadius,
                             innerBorderWidth + outerBorderWidth + cornerRadius);
         if (this._side == St.Side.LEFT)
-            this.actor.set_position(0, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
+            this.actor.set_position(Main.panel.actor.x,
+                                    Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
         else
-            this.actor.set_position(Main.panel.actor.width - cornerRadius, Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
+            this.actor.set_position(Main.panel.actor.x + Main.panel.actor.width - cornerRadius,
+                                    Main.panel.actor.y + Main.panel.actor.height - innerBorderWidth - outerBorderWidth);
     }
 };